﻿public class HomeWork {

	public static void main(String[] args) {
		for (int i = 1994; i <= 2017; i++) {
			for (int j = 1; j <= 12; j++) {
				if(j==4||j==6||j==9||j==11){
					for (int k = 1; k <= 30; k++) {
						System.out.println(i+"-"+j+"-"+k);
					}
				}else if(j==2){
					if(i%4==0&&i%100!=0||i%400==0){
						for (int k = 1; k <= 29; k++) {
							System.out.println(i+"-"+j+"-"+k);
						}
					}else{
						for (int k = 1; k <= 28; k++) {
							System.out.println(i+"-"+j+"-"+k);
						}
					}
				}else{
					for (int k = 1; k <= 31; k++) {
							System.out.println(i+"-"+j+"-"+k);
					}
				}
			}
		}
	}
}